<template>
    <el-container class="w-full">
        <el-header><h1>新增职业</h1></el-header>
        <el-container>
            <el-main>
                <career-create-form @complete="createCareerSuccess"/>
            </el-main>

        </el-container>

    </el-container>

</template>

<script>
    import CareerCreateForm from "../components/CareerCreateForm";

    export default {
        components: {CareerCreateForm}, methods: {
            createCareerSuccess(careerId) {
                this.$message.success('成功添加职业');
                this.$router.push({name: 'career-edit', params: {career: careerId}})
            }
        }
    }
</script>
